home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / crwdemo / formula.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-12-05  |  8.5 KB  |  252 lines

  1. VERSION 2.00
  2. Begin Form Form5 
  3.    BackColor       =   &H00C0C0C0&
  4.    Caption         =   "Form5"
  5.    ClientHeight    =   6000
  6.    ClientLeft      =   945
  7.    ClientTop       =   1725
  8.    ClientWidth     =   8685
  9.    Height          =   6690
  10.    Left            =   885
  11.    LinkTopic       =   "Form5"
  12.    ScaleHeight     =   6000
  13.    ScaleWidth      =   8685
  14.    Top             =   1095
  15.    Width           =   8805
  16.    Begin TextBox RecordSelectionString 
  17.       Height          =   855
  18.       Left            =   240
  19.       TabIndex        =   5
  20.       Text            =   "   "
  21.       Top             =   1320
  22.       Width           =   7815
  23.    End
  24.    Begin TextBox ReturnValue 
  25.       Height          =   495
  26.       Left            =   240
  27.       TabIndex        =   4
  28.       Top             =   4200
  29.       Width           =   4575
  30.    End
  31.    Begin TextBox GroupSelectionString 
  32.       Height          =   855
  33.       Left            =   240
  34.       TabIndex        =   3
  35.       Top             =   2880
  36.       Width           =   7815
  37.    End
  38.    Begin Label Label4 
  39.       BackColor       =   &H00C0C0C0&
  40.       Caption         =   "Status "
  41.       Height          =   255
  42.       Left            =   240
  43.       TabIndex        =   6
  44.       Top             =   3960
  45.       Width           =   2535
  46.    End
  47.    Begin Label Label3 
  48.       BackColor       =   &H00C0C0C0&
  49.       Caption         =   "Group Selection"
  50.       Height          =   255
  51.       Left            =   240
  52.       TabIndex        =   2
  53.       Top             =   2400
  54.       Width           =   6375
  55.    End
  56.    Begin Label Label2 
  57.       BackColor       =   &H00C0C0C0&
  58.       Caption         =   "Record Selection :"
  59.       Height          =   255
  60.       Left            =   240
  61.       TabIndex        =   1
  62.       Top             =   960
  63.       Width           =   2055
  64.    End
  65.    Begin Label Label1 
  66.       BackColor       =   &H00C0C0C0&
  67.       Caption         =   "Selection Screen"
  68.       FontBold        =   -1  'True
  69.       FontItalic      =   0   'False
  70.       FontName        =   "System"
  71.       FontSize        =   9.75
  72.       FontStrikethru  =   0   'False
  73.       FontUnderline   =   0   'False
  74.       Height          =   495
  75.       Left            =   240
  76.       TabIndex        =   0
  77.       Top             =   120
  78.       Width           =   2655
  79.    End
  80.    Begin Menu Sel1 
  81.       Caption         =   "&Record Selection"
  82.       Begin Menu Sel2 
  83.          Caption         =   "&Get Selection"
  84.       End
  85.       Begin Menu Sel3 
  86.          Caption         =   "&Clear Selection"
  87.       End
  88.       Begin Menu Sel4 
  89.          Caption         =   "&Accept Settings"
  90.       End
  91.    End
  92.    Begin Menu Sel5 
  93.       Caption         =   "&Group Selection"
  94.       Begin Menu Sel6 
  95.          Caption         =   "&Get Selection"
  96.       End
  97.       Begin Menu Sel7 
  98.          Caption         =   "&Clear Selection"
  99.       End
  100.       Begin Menu Sel8 
  101.          Caption         =   "&Accept Settings"
  102.       End
  103.    End
  104.    Begin Menu Sel9 
  105.       Caption         =   "&Close Form"
  106.    End
  107. Sub Command1_Click ()
  108.     Unload Form5
  109. End Sub
  110. Sub Command2_Click ()
  111.           RecSel = RecordSelectionString.Text
  112.           Rem MsgBox (RecSel)
  113.           SetSelectionRtn% = PESetSelectionFormula(jobnum, RecSel)
  114.           If SetSelectionRtn% = 1 Then
  115.             ReturnValue.Text = "PESetSelectionFormula Success"
  116.             'Form1.Rslt.Text = "PESetSelFormula Success "
  117.           Else
  118.             ReturnValue.Text = "PeSetSelectionFormula Failure"
  119.             'Form1.Rslt.Text = "PESetSelFormula Failure"
  120.           End If
  121. End Sub
  122. Sub Command3_Click ()
  123.     RecordSelectionString.Text = " "
  124.     RecordSelectionString.SetFocus
  125. End Sub
  126. Sub Command4_Click ()
  127.     SetGroupSelectionRtn% = PESetGroupSelectionFormula(jobnum, GroupSelectionString)
  128.     If SetGroupSelectionRtn% = 1 Then
  129.         ReturnValue.Text = "SetGroupSelectionFormula Success"
  130.         'Form1.Rslt.Text = "SetGrpSelFormula Success"
  131.     Else
  132.         ReturnValue.Text = "SetGroupSelectionFormula Failure"
  133.         'Form1.Rslt.Text = "SetGrpSelFormula Failure"
  134.     End If
  135. End Sub
  136. Sub Command5_Click ()
  137.     GroupSelectionString.Text = " "
  138.     GroupSelectionString.SetFocus
  139. End Sub
  140. Sub Command6_Click ()
  141.     ReturnValue.SetFocus
  142. End Sub
  143. Sub Command7_Click ()
  144.           Rtn1% = PEGetSelectionFormula(jobnum, TextHandle%, TextLength%)
  145.           If Rtn1% = 1 Then
  146.             ReturnValue.Text = "PEGetSelectionFormula Success 1"
  147.             'Form1.Rslt.Text = "PEGetSelFormula Success"
  148.           Else
  149.             ReturnValue.Text = "PEGetSelectionFormula Failure 1"
  150.             'Form1.Rslt.Text = "PEGetSelFormula Failure"
  151.           End If
  152.           Rtn2% = PEGetHandleString(TextHandle%, StrBuffer$, TextLength%)
  153.           If Rtn2% = 1 Then
  154.             RecordSelectionString = StrBuffer$
  155.             ReturnValue.Text = "PEGetSelectionFormula Success 1"
  156.           Else
  157.             ReturnValue.Text = "PEGetSelectionFormula Failure 1"
  158.           End If
  159.           
  160. End Sub
  161. Sub Command8_Click ()
  162.           Rtn1% = PEGetGroupSelectionFormula(jobnum, TextHandle%, TextLength%)
  163.           If Rtn1% = 1 Then
  164.             ReturnValue.Text = "PEGetGroupSelectionFormula Success 1"
  165.             'Form1.Rslt.Text = "PEGetGrpSelFormula Success"
  166.           Else
  167.             ReturnValue.Text = "PEGetGroupSelectionFormula Failure 1"
  168.             'Form1.Rslt.Text = "PEGetGrpSelFormula Failure "
  169.           End If
  170.           
  171.           Rtn2% = PEGetHandleString(TextHandle%, StrBuffer$, TextLength%)
  172.           If Rtn2% = 1 Then
  173.             GroupSelectionString = StrBuffer$
  174.             ReturnValue.Text = "PEGetGroupSelectionFormula Success 1"
  175.           Else
  176.             ReturnValue.Text = "PEGetGroupSelectionFormula Failure 1"
  177.           End If
  178. End Sub
  179. Sub Command9_Click ()
  180. End Sub
  181. Sub Form_Load ()
  182.     Form5.WindowState = 2
  183. End Sub
  184. Sub Sel2_Click ()
  185.           'Rtn1% = PEGetSelectionFormula(jobnum, TextHandle%, TextLength%)
  186.           'If Rtn1% = 1 Then
  187.            ' ReturnValue.Text = "PEGetSelectionFormula Success 1"
  188.             ''Form1.Rslt.Text = "PEGetSelFormula Success"
  189.           'Else
  190.            ' ReturnValue.Text = "PEGetSelectionFormula Failure 1"
  191.             'Form1.Rslt.Text = "PEGetSelFormula Failure"
  192.          ' End If
  193.           
  194.           'Rtn2% = PEGetHandleString(TextHandle%, StrBuffer$, TextLength%)
  195.           'If Rtn2% = 1 Then
  196.            ' RecordSelectionString = StrBuffer$
  197.             'ReturnValue.Text = "PEGetSelectionFormula Success 1"
  198.           'Else
  199.           '  ReturnValue.Text = "PEGetSelectionFormula Failure 1"
  200.          ' End If
  201. End Sub
  202. Sub Sel3_Click ()
  203.     RecordSelectionString.Text = " "
  204.     RecordSelectionString.SetFocus
  205. End Sub
  206. Sub Sel4_Click ()
  207.           RecSel = RecordSelectionString.Text
  208.           Rem MsgBox (RecSel)
  209.           SetSelectionRtn% = PESetSelectionFormula(jobnum, RecSel)
  210.           If SetSelectionRtn% = 1 Then
  211.             ReturnValue.Text = "PESetSelectionFormula Success"
  212.             'Form1.Rslt.Text = "PESetSelFormula Success "
  213.           Else
  214.             ReturnValue.Text = "PeSetSelectionFormula Failure"
  215.             'Form1.Rslt.Text = "PESetSelFormula Failure"
  216.           End If
  217. End Sub
  218. Sub Sel6_Click ()
  219.           'Rtn1% = PEGetGroupSelectionFormula(jobnum, TextHandle%, TextLength%)
  220.          ' If Rtn1% = 1 Then
  221.           '  ReturnValue.Text = "PEGetGroupSelectionFormula Success 1"
  222.             'Form1.Rslt.Text = "PEGetGrpSelFormula Success"
  223.          ' Else
  224.           '  ReturnValue.Text = "PEGetGroupSelectionFormula Failure 1"
  225.             'Form1.Rslt.Text = "PEGetGrpSelFormula Failure "
  226.          ' End If
  227.          ' Rtn2% = PEGetHandleString(TextHandle%, StrBuffer$, TextLength%)
  228.          ' If Rtn2% = 1 Then
  229.           '  GroupSelectionString = StrBuffer$
  230.           '  ReturnValue.Text = "PEGetGroupSelectionFormula Success 1"
  231.          ' Else
  232.           '  ReturnValue.Text = "PEGetGroupSelectionFormula Failure 1"
  233.          ' End If
  234. End Sub
  235. Sub Sel7_Click ()
  236.     GroupSelectionString.Text = " "
  237.     GroupSelectionString.SetFocus
  238. End Sub
  239. Sub Sel8_Click ()
  240.     SetGroupSelectionRtn% = PESetGroupSelectionFormula(jobnum, GroupSelectionString)
  241.     If SetGroupSelectionRtn% = 1 Then
  242.         ReturnValue.Text = "SetGroupSelectionFormula Success"
  243.         'Form1.Rslt.Text = "SetGrpSelFormula Success"
  244.     Else
  245.         ReturnValue.Text = "SetGroupSelectionFormula Failure"
  246.         'Form1.Rslt.Text = "SetGrpSelFormula Failure"
  247.     End If
  248. End Sub
  249. Sub Sel9_Click ()
  250.     Unload Form5
  251. End Sub
  252.